Repository navigation
docs: which parts of this kernel are NebulaOS - #2
Merged
Merged
Conversation
Most of this repository is a vendor SDK, and nothing separated NebulaOS's own work from Ingenic's or OpenKE's. docs/nebulaos/WHAT_NEBULAOS_CHANGES.md does that, which is the question a developer actually arrives with. The branch layout is the key: main is a98c2e1 "initial release", the pristine vendor baseline forked from Llixuma/ingenic-linux-kernel6.6-x2000-v1.0-20250221, and openke carries 122 commits on top. So git diff origin/main origin/openke is the complete change set. The page warns about that diff rather than quoting it as a figure of merit: it reports around 13,000 files changed, almost all of it vendor tree reorganisation from the OpenKE import. Presenting that as NebulaOS's footprint would be misleading by a factor of a thousand. The real surface is three layers. The inherited OpenKE commit. Five commits fixing genuine errors in the vendor board description - a missing third cell in wlan_pwrseq reset-gpios, a missing post-power-on-delay-ms causing an SDIO probe race, drvvbus-gpio on the wrong pin, uart1 never wired up at all, and as_dmic holding the pins uart1 needed. And eight NebulaOS commits, each with a G-number, listed with the subsystem each touches. Those five fixes are presented as a group on purpose: the last two are one story, in which the link to the mainboard MCU did not exist in the vendor board file and a second device was holding its pins. Three NebulaOS changes are explained by what needs them above the kernel, which reading the kernel alone does not reveal: the buzzer exists as a PWM channel so Klipper's nebulaos_beeper can drive it from userspace, the watchdog arms with a programmed timeout so S02nebulaos-watchdog can feed it, and the power-on picture survives the display takeover so the boot logo does not flash to black before NebulaScreen appears. And the answer to the mission's question about which changes are maintained here versus applied by the firmware build: all of them are here, none are applied. 01-apply-kernel-patches.sh applies nothing now - it verifies that the expected changes are present, and keeps its 01- number so existing documentation still works. Anyone comparing older documents needs that. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Re-verified against openke 95d0321, which is also the kernel NebulaOS 1.0.2 ships (KERNEL_PIN in the firmware manifest at v1.0.2). - New section: the eleven-commit diagnosis layer written after the 2026-11-06 partial hang and the 2026-11-08 mid-print freeze - pstore/ramoops in the DTS, soft/hard-lockup panic and report-only hung-task detection, the watchdog pre-timeout dump at 40 s of the armed 60 s, the lock-free sched_clock read, the nebulaos_sdio_idle A/B parameter and the I2C INTM masking. - New section: the scheduling model is CONFIG_PREEMPT, not PREEMPT_RT; the tree stays on linux-stable-rt and localversion-rt was removed. - The "not covered" bullet claiming PREEMPT_RT was unestablished is replaced by what the defconfig actually sets; commit counts refreshed (133 commits over the vendor baseline, 25 config changes). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ory's wiki docs/nebulaos/WHAT_NEBULAOS_CHANGES.md becomes six wiki pages in a top-level wiki/ directory - Home, _Sidebar, What-NebulaOS-Changes, Freeze-Diagnosis, Scheduling-Model, Branch-Model, Build-And-Integration, Hardware - with wiki-style links, the same shape as the central manual and the NebulaScreen wiki. The in-repo document stays as a pointer table; the vendor SDK's own docs/doc/ is untouched. The seven pages published on the wiki today are from 2026-08-15 and describe a project that has moved: they name the coreflake1 organisation, the retired NebulaOS-klipper fork, PREEMPT_RT, and eight build-time "qualified variants" applied by a script that no longer exists. Replacing all of them. New material, read from source at 95d0321 and firmware 3bdf3ff rather than carried over: - Build-And-Integration documents what stage 01 verifies, now that it applies nothing: the pin (independently of stage 00, so a hand-run git pull between them is caught), a completely unmodified checkout, and five specific pieces of the fork's content - including the literal `gzip -nv9f` line in arch/mips/boot/zcompressed/Makefile. That line is the build-reproducibility fix, and it is a commit here, not a build-time variant: the firmware's REPRODUCIBILITY.md still calls it kernel-gzip-determinism-variant.sh, and no such script exists at 1.0.2. The page says so. - It also records why the branch-name check was removed rather than special-cased (a pinned checkout is a detached HEAD, so --abbrev-ref HEAD reports "HEAD"). - The CI line is now what the workflow says: a compile check of xImage for nebulaos_halley5_v30 with Ubuntu's GCC 13 and without the Wi-Fi blobs, which is not a qualification. Freeze-Diagnosis ends with what it is not: instrumentation and two mitigations, none of it verified on a printer by its author, and no claim that the freeze is fixed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…s too Build-And-Integration said stage 01 verifies the literal `gzip -nv9f` line and that the firmware's reproducibility record wrongly credited it to a build-time variant script. The firmware corrected that (d464b46), so the page names the commit instead: b31be02 here, one line in arch/mips/boot/zcompressed/Makefile, an ancestor of the 1.0.2 pin - verified in this repository, not taken from the other one's say-so - and what it bought: firmware 3bdf3ff built twice gives the same xImage byte for byte. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
docs/nebulaos/WHAT_NEBULAOS_CHANGES.md— which parts of this kernel are NebulaOS, and whichare Ingenic's or OpenKE's. From the
nebulaos-docsbackground session.Most of this repository is a vendor SDK, and nothing separated the layers. That's the question a
developer actually arrives with.
The branch layout is the key
maina98c2e1f2"initial release" — the pristine vendor baseline, forked fromLlixuma/ingenic-linux-kernel6.6-x2000-v1.0-20250221openkeSo
git diff origin/main origin/openkeis the complete change set.The page warns about that diff rather than quoting it as a figure of merit. It reports
around 13,000 files changed, almost all of which is vendor tree reorganisation from the OpenKE
import. Presenting that as NebulaOS's footprint would be misleading by about a factor of a
thousand.
The three layers
wlan_pwrseqreset-gpios, a missingpost-power-on-delay-mscausing an SDIO probe race,drvvbus-gpioon the wrong pin,uart1never wired up at all, andas_dmicholding the pinsuart1needed. Presented as a group, because the last two are one story: the link to themainboard MCU did not exist in the board file, and a second device held its pins.
G-number and the subsystem it touches — boot logo,display takeover, boot diagnostics, NS2009 sysfs, buzzer PWM, watchdog arming, log levels.
Three of those are explained by what needs them above the kernel, which reading the kernel
alone doesn't reveal: the buzzer is a PWM channel so Klipper's
nebulaos_beepercan drive itfrom userspace, the watchdog arms with a programmed timeout so
S02nebulaos-watchdogcan feedit, and the power-on picture survives the display takeover so the boot logo doesn't flash to
black before NebulaScreen appears.
One thing worth knowing if you compare documents
The mission asks which changes are maintained here versus applied by the firmware build. The
answer: all of them are here, and none are applied.
The changes used to come from
patches/x2000_kernel_6.6-openke.patchat build time. They arenow real commits on
openke, which00-fetch-vendor-sources.shchecks out directly — soscripts/build/01-apply-kernel-patches.shapplies nothing. It verifies that the expectedchanges are present, and keeps its
01-number on purpose so existing documentation and habitsstill work.
Scope
Nothing on the page was observed on a printer by its author. Also not covered: the vendor
SDK itself, and U-Boot. The scheduling model is covered now — see the refresh below.
The pinned commit that actually ships is
KERNEL_PINinNebulaOS-firmware/manifests/dependencies.conf; this branch's tip is not, when the two differ.Refreshed 2026-11-10, at
95d0321e— which is also what 1.0.2 shipsRebased on
openke. The tip is95d0321e, and that is the kernel NebulaOS 1.0.2 ships(
KERNEL_PINin the firmware manifest atv1.0.2), so for once there is no pin gap to footnote.133 commits over the vendor baseline now, 25 config changes.
Two new sections, and one claim withdrawn:
development printer — a partial hang on 2026-11-06 and a mid-print freeze on 2026-11-08.
pstore/ramoops in the DTS so the kernel's own log survives the reset, soft- and hard-lockup
panic with report-only hung-task detection, the watchdog pre-timeout dump at 40 s of the
armed 60 s so there is evidence before the board is reset, a lock-free
sched_clockread iningenic_core_ost.cso a dump cannot deadlock on the clocksource lock, thenebulaos_sdio_idleruntime parameter in brcmfmac, and i2c-ingenic masking interrupts beforereset and before gating the clock.
CONFIG_PREEMPT, notPREEMPT_RT. The tree is still based onlinux-stable-rtandlocalversion-rtwas removed. The previous version of this page listedPREEMPT_RT under not covered on the grounds that it was unestablished; it is established now,
read from the defconfig, so the bullet is replaced by what the defconfig actually sets.
No page claims any of these mitigations is proven to fix the freeze. They are what the source
does; whether the printer still freezes is a hardware question this session cannot answer.
Developer wiki (2026-11-12)
The kernel's developer documentation is now this repository's wiki: eight pages in a
top-level
wiki/directory, the same shape as the central manual and the NebulaScreen wiki -Home.md,_Sidebar.md, one page per topic, wiki-style links. Nothing is published;wiki/isMarkdown in this branch and publishing stays the owner's step.
docs/is reduced to a pointer for this one page:docs/nebulaos/WHAT_NEBULAOS_CHANGES.mdis now a table pointing at the wiki. The vendor SDK's own documentation under
docs/doc/isuntouched, and the README's link follows the content.
The pages
Home,_SidebarWhat-NebulaOS-Changesopenke, fromWHAT_NEBULAOS_CHANGES.mdFreeze-DiagnosisScheduling-ModelCONFIG_PREEMPTrather thanCONFIG_PREEMPT_RT, and what went with itBranch-ModelopenkenameBuild-And-IntegrationHardwareThe 7 pages published on the wiki today
They are from 2026-08-15 and describe a project that has moved: they name the
coreflake1organisation, the retired
NebulaOS-klipperfork, GuppyScreen, PREEMPT_RT, and eight build-time"qualified variants" applied by
scripts/build/apply-qualified-baseline.sh.HomeHome_Sidebar_SidebarBranch-ModelBranch-Model- same subject, corrected organisation and no retired repositoriesKernel-DevelopmentWhat-NebulaOS-Changes, which lists the changes as commits rather than as areasKernel-Build-and-TestBuild-And-IntegrationIntegration-with-NebulaOS-firmwareBuild-And-IntegrationDebuggingFreeze-Diagnosis. The old page said in as many words that there was no kernel-debugging guide yet and was a pointer; there is one nowQualified-Variantsapply-qualified-baseline.shdo not exist at 1.0.2. Kernel changes are commits onopenkeand01-apply-kernel-patches.shapplies nothing.QUALIFIED_BASELINE_TAGstill exists in the manifest as the config-comparison reference and is documented in the firmware wiki'sBuild-Provenance, not hereNew material, read from source at
95d0321eand firmware3bdf3ffmanifest, and checked independently of stage 00, so a hand-run
git pullbetween the two isstill caught), a completely unmodified checkout, and five specific pieces of the fork's
content -
ns2009.c, thepanel-openke-general-480x272.cdisplay driver,openke,bcm4343x-btinhci_h5.c,ns2009@48inhalley5_v30.dts, and the literal linegzip -nv9f $(obj)/vmlinux.bininarch/mips/boot/zcompressed/Makefile.docs/REPRODUCIBILITY.mdstill describes it askernel-gzip-determinism-variant.sh; no suchscript exists at 1.0.2. The page says so, which is the honest form of "the two documents
disagree".
detached HEAD, so
git rev-parse --abbrev-ref HEADreports the literal stringHEADand thecheck failed a checkout that was exactly correct.
xImagefornebulaos_halley5_v30with Ubuntu's GCC13 and without the Wi-Fi firmware blobs. Not a qualification, and the page says so.
Freeze-Diagnosisends with what it is not: instrumentation and two mitigations, none of itverified on a printer by its author, and no claim that the freeze is fixed.
check_links.py: 8 pages, no broken links, every page reachable from the sidebar.Follow-up the same day: the gzip -n commit has a name
Firmware
d464b46corrected the firmware's reproducibility record, which had credited thekernel's
gzip -nfix to a build-time variant script that does not exist.Build-And-Integrationnow names the commit -
b31be02d9here, one line,gzip -v9ftogzip -nv9finarch/mips/boot/zcompressed/Makefile, an ancestor of the 1.0.2 pin, verified in this repository -and what it bought: firmware
3bdf3ffbuilt twice gives the samexImagebyte for byte.🤖 Generated with Claude Code